import com.lq.entity.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import com.lq.service.UserService;
import com.lq.utils.AppConfig;

public class Ce {

    @org.junit.jupiter.api.Test
    public void selectUser(){
        ApplicationContext app = new AnnotationConfigApplicationContext(AppConfig.class);
        UserService users = app.getBean(UserService.class);
        String user = users.getUser(new User().setName("贾闲").setAge("18"));
        System.out.println(user);
    }


}
